import { getSelectListApi } from "@/api/category"
import { ref } from 'vue'

export default function useSelectCategory(){
    const selectData = ref([])
    const getSelect = async()=>{
        let result = await getSelectListApi()
        if(result && result.code == 200){
            selectData.value = result.data
        }
    }
    return{
        selectData,
        getSelect,
    }
}